package com.whksoft.mymapplugin.API;

import org.bukkit.enchantments.Enchantment;

import java.awt.image.BufferedImage;
import java.util.List;

public class ZMap {

    private String str = null;
    private List<String> lore;
    private String name = "QR Map";
    private Enchantment enchantment = Enchantment.KNOCKBACK;
    private BufferedImage image = null;
    private boolean hideEnchantment = true;
    private BufferedImage icon = null;

    public ZMap(String str) {
        this.str = str;
    }

    public ZMap(BufferedImage image) {
        this.image = image;
    }

    public void setLore(List<String> lore) {
        this.lore = lore;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setEnchantment(Enchantment enchantment) {
        this.enchantment = enchantment;
    }

    public void setIcon(BufferedImage icon){
        this.icon = icon;
    }

    public void resetIcon(){
        this.icon = null;
    }

    public List<String> getLore() {
        return lore;
    }

    public String getName() {
        return name;
    }

    public Enchantment getEnchantment() {
        return enchantment;
    }

    public boolean isHideEnchantment() {
        return hideEnchantment;
    }

    public void setHideEnchantment(boolean hideEnchantment) {
        this.hideEnchantment = hideEnchantment;
    }

    public String getStr() {
        return str;
    }

    public BufferedImage getImage() {
        return image;
    }
}
